package com.usian.feign;


import com.usian.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "userservice")
@RequestMapping("/provider/user")
public interface UserFeign {

    @RequestMapping("/findById")
    public User findById(@RequestParam Integer userId);

    @RequestMapping("findAll")
    public List<User> findAll();

}
